# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-python-socks
_pkgname=python-socks
pkgver=2.7.1
pkgrel=1
pkgdesc='Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python.'
url='https://pypi.org/project/python-socks/#files'
arch=('any')
license=('Apache')
depends=('python' 'python-asyncio' 'python-trio' 'python-curio')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('23892739ee61a412daba5897b520221d89fa896de9d45c1d2f0c51798c73c4548e7e290835e0836d6bb9dfc024b062abeaac59a0b1c0b1389d57c54c57fc7ce4')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

